import { getorderlist1 } from "../api";
import { getorderlist2 } from "../api";
import { getorderlist6 } from "../api";
import { getorderlist3 } from "../api";
const state = {
    orderlist:{}
};
const mutations = {
    LIST1(state, orderlist) {
        state.orderlist = orderlist
    },
    LIST2(state, orderlist) {
        state.orderlist = orderlist
        console.log(orderlist)
    },
    LIST6(state, orderlist) {
        state.orderlist = orderlist
        console.log(orderlist)
    },
    LIST3(state, orderlist) {
        state.orderlist = orderlist
        console.log(orderlist)
    },
};
const actions = {
    async getOrderlist1({ commit }) {
        let result = await getorderlist1()
        if (result.status == 200) {
            commit("LIST1", result.data);
        }
    },
    async getOrderlist2({ commit }) {
        let result = await getorderlist2()
        if (result.status == 200) {
            commit("LIST2", result.data);
        }
    },
    async getOrderlist6({ commit }) {
        let result = await getorderlist6()
        if (result.status == 200) {
            commit("LIST6", result.data);
        }
    }
    ,
    async getOrderlist3({ commit }) {
        let result = await getorderlist3()
        if (result.status == 200) {
            commit("LIST3", result.data);
        }
    }
};
const getters = {};

export default {
    state,
    mutations,
    actions,
    getters
}